<html>
	<head>
		<title>礼物页</title>
		<script src="__PUBLIC__/Js/jquery-1.8.3.min.js"></script>
		<style>
			.img{
				border:2px solid #fff;
			}
			.img.active{
				border:2px solid red;
			}
		</style>
		
	</head>
	<body>
	 
		 <volist name='data' id='vo'>
		<div class="img" style="float:left;margin-left:20px;height:140px;margin-bottom:20px;"><img src="<{$vo.name}>" alt="<{$vo.gift_name}>"><br><{$vo.gift_name}></div>

		</volist> 
		<div style="clear:both;"></div>

		<form action="<{:U('deal')}>" method="post">
			<input type="hidden" name="uid" value="<?php echo $list ?>">
			<input id="name" type="hidden" name="name">
			<button style="width:100px;height:50px;background:green;border:none;margin-left:1030px;margin-top:30px;color:#fff;font-size:20px;"> 发 送 </button>


		</form>
	
	</body>

	<script>
	$('.img').click(function(){
		$(this).toggleClass('active').siblings('.img').removeClass('active');
		var name = $(this).children('img').attr('src');
		/*console.log(name);*/
		/*console.log($('#name'));*/

		$('#name').attr('value',name);
	}
		
		)
		/*function add(s){
			$(s).toggleClass('active')
		}*/



	</script>
</html>